package com.tarena.lbs.marketing.web;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication(scanBasePackages = {
    "com.tarena.lbs.marketing",
    "com.tarena.lbs.*.marketing",
    "com.tarena.lbs.*.security"
})
@ImportResource({"classpath:dubbo.xml"})
@MapperScan("com.tarena.lbs.marketing.web.mapper")
@EnableAutoDataSourceProxy
@EnableAsync
@EnableAspectJAutoProxy(exposeProxy = true)
public class MarketingWeb {

    public static void main(String[] args) {
        SpringApplication.run(MarketingWeb.class, args);
    }

}
